import 'package:fish_redux/fish_redux.dart';

import 'action.dart';
import 'state.dart';

Reducer<PatrolReasonViewState> buildReducer() {
  return asReducer(
    <Object, Reducer<PatrolReasonViewState>>{
      PatrolReasonViewAction.action: _onAction,
    },
  );
}

PatrolReasonViewState _onAction(PatrolReasonViewState state, Action action) {
  final PatrolReasonViewState newState = state.clone();
  return newState;
}
